import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from '/@/router/Router.ts';
import { createPinia } from 'pinia'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

if (import.meta.env.DEV) {
  console.log('------开发环境-------------------------------------------------------------------------------')
  console.log('vite自定义变量：', import.meta.env)
  console.log('--------------------------------------------------------------------------------------------')
}

const app = createApp(App)

// ui库
app.use(ElementPlus, {
  locale: zhCn,
})
// 设置路由
app.use(router)
// 状态管理库
const pinia = createPinia()
app.use(pinia)
app.mount('#app')
